#include <ntddk.h>
#include <sal.h>

void
SampleUnload(_In_ PDRIVER_OBJECT DriverObject)
{
	UNREFERENCED_PARAMETER(DriverObject);

	KdPrint(("Sample driver Unload called\n"));
}

EXTERN_C
NTSTATUS 
DriverEntry(_In_ PDRIVER_OBJECT DriverObject, _In_ PUNICODE_STRING RegistryPath)
{
	UNREFERENCED_PARAMETER(RegistryPath);

	DriverObject->DriverUnload = SampleUnload;	

	RTL_OSVERSIONINFOW OsVersion;
	RtlGetVersion(&OsVersion);

	KdPrint(("%d\n", OsVersion.dwMajorVersion));
	KdPrint(("%d\n", OsVersion.dwMinorVersion));
	KdPrint(("%d\n", OsVersion.dwBuildNumber));

	KdPrint(("Sample Driver initialized successful\n"));

	return STATUS_SUCCESS;
}